/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ManagedBeans;

import Processes.Navigate;
import java.io.Serializable;
import javax.faces.context.FacesContext;

/**
 *
 * @author Kim
 */
public class Register implements Serializable {

    private String uid, pwd, confirm, contact, mobile, tele, address, email;
    private int cityid;

    /** Creates a new instance of Register */
    public Register() {
    }

    public String getConfirm() {
        return confirm;
    }

    public void setConfirm(String confirm) {
        this.confirm = confirm;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getCityid() {
        return cityid;
    }

    public void setCityid(int cityid) {
        this.cityid = cityid;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getTele() {
        return tele;
    }

    public void setTele(String tele) {
        this.tele = tele;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String regis() {
        //HttpSession ses=(HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(true);   
        //ses.invalidate();
        Navigate nav = (Navigate) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("navigate");
        nav.setPage("./MainPage.xhtml");
        return "MainPage.xhtml";
    }
}
